/*
 * @Description: 
 * @Author: mmzhang
 * @Date: 2021-12-10 16:52:09
 * @LastEditTime: 2022-07-18 09:45:03
 */
import Opt from '@/components/dt/info/Opt.js'
import ProBuildUnit from '@/biz/option/proBuildUnit.js'

let _this = null
let proBuildUnit = new ProBuildUnit()
class SearchOpt extends Opt {

  constructor(vm) {
    _this = vm
    super()
    this.build()
  }

  build() {
    this.createAll()
    if (_this.showTab == 2) {
      this.opts.push(...this.auditResults)
    }
    this.opts.push(...this.all)
  }


  createAll() {
    this.auditResults = [{
      title: '审核状态',
      key: 'auditResults',
      placeholder: '请选择',
      select: {
        options: [{
          key: '2',
          value: '已通过',
        },
        {
          key: '3',
          value: '已驳回',
        }]
      }
    }]
    this.all = [
      ...proBuildUnit.options(_this, false, false)
    ]
  }
}

export default SearchOpt